export default [
  {
    path: "/",
    redirect: "/login",
  },
  {
    path: "/index",
    name: "index",
    redirect: "/home",
    component: () => import("@/views/home/index.vue"),
    meta: {
      title: "首页",
      requireAuth: true,
      affix: true,
      closable: false,
    },
    children: [
      {
        path: "/home",
        name: "/home",
        component: () => import("@/views/home/home.vue"),
      },
      {
        path: "/foundation/user",
        name: "/foundation/user",
        component: () => import("@/views/systemManager/user.vue"),
      },
      {
        path: "/foundation/role",
        name: "/foundation/role",
        component: () => import("@/views/systemManager/role.vue"),
      },
      // 牌号管理
      {
        path: "/foundation/mark",
        name: "/foundation/mark",
        component: () => import("@/views/systemManager/mark.vue"),
      },
      // 权限管理
      {
        path: "/foundation/permissions",
        name: "/foundation/permissions",
        component: () => import("@/views/systemManager/permissions.vue"),
      },
      // 部门管理
      {
        path: "/foundation/divisional",
        name: "/foundation/divisional",
        component: () => import("@/views/systemManager/divisional.vue"),
      },
      // 标样管理
      {
        path: "/foundation/sample",
        name: "/foundation/sample",
        component: () => import("@/views/systemManager/sample.vue"),
      },
      // 编号库
      {
        path: "/foundation/numberBase",
        name: "/foundation/numberBase",
        component: () => import("@/views/systemManager/numberBase.vue"),
      },

      // 评吸管理
      // 评吸会议
      {
        path: "/smokePanel/metting",
        name: "/smokePanel/metting",

        component: () => import("@/views/smokeManager/metting.vue"),
        // children: [
        //   {
        //     path: "/smokePanel/metting/setting",
        //     name: "/smokePanel/metting/setting",
        //     component: () => import("@/views/smokeManager/setting.vue"),
        //   },
        // ],
      },
      // 烟支设置
      {
        path: "/smokePanel/metting/setting",
        name: "/smokePanel/metting/setting",
        component: () => import("@/views/smokeManager/setting.vue"),
      },
      {
        path: "/smokePanel/metting/settingNew",
        name: "/smokePanel/metting/settingNew",
        component: () => import("@/views/smokeManager/settingNew.vue"),
      },
      //投屏
      {
        path: "/smokePanel/metting/screen",
        name: "/smokePanel/metting/screen",
        component: () => import("@/views/smokeManager/screen.vue"),
      },
      // 详情
      {
        path: "/smokePanel/metting/detail",
        name: "/smokePanel/metting/detail",
        component: () => import("@/views/smokeManager/detail.vue"),
      },
      // 对比评吸详情
      {
        path: "/smokePanel/metting/db/detail",
        name: "/smokePanel/metting/db/detail",
        component: () => import("@/views/smokeManager/px_detail/db.vue"),
      },
      // 对比排序详情
      {
        path: "/smokePanel/metting/comRank/detail",
        name: "/smokePanel/metting/comRank/detail",
        component: () => import("@/views/smokeManager/px_detail/comRank.vue"),
      },
      // 三点评吸详情
      // {
      //   path: "/smokePanel/metting/sd/detail",
      //   name: "/smokePanel/metting/sd/detail",
      //   component: () => import("@/views/smokeManager/px_detail/sd.vue"),
      // },
      {
        path: "/smokePanel/metting/threeDetail/detail",
        name: "/smokePanel/metting/threeDetail/detail",
        component: () =>
          import("@/views/smokeManager/px_detail/threeDetail.vue"),
      },
      // 精品评价详情
      {
        path: "/smokePanel/metting/jp/detail",
        name: "/smokePanel/metting/jp/detail",
        component: () => import("@/views/smokeManager/px_detail/jp.vue"),
      },
      // 单料烟详情
      {
        path: "/smokePanel/metting/dl/detail",
        name: "/smokePanel/metting/dl/detail",
        component: () => import("@/views/smokeManager/px_detail/dl.vue"),
      },

      // 单点评吸设置
      {
        path: "/smoke/month",
        name: "/smoke/month",
        component: () => import("@/views/smokeManager/month.vue"),
      },
      // 对比评吸设置
      {
        path: "/smoke/db",
        name: "/smoke/db",
        component: () => import("@/views/smokeManager/px_setting/db.vue"),
      },
      // 对比排序设置
      {
        path: "/smoke/comRank",
        name: "/smoke/comRank",
        component: () => import("@/views/smokeManager/px_setting/comRank.vue"),
      },
      // 三点评吸设置
      {
        path: "/smoke/sd",
        name: "/smoke/sd",
        component: () => import("@/views/smokeManager/px_setting/sd.vue"),
      },
      // 竞品评价设置
      {
        path: "/smoke/jp",
        name: "/smoke/jp",
        component: () => import("@/views/smokeManager/px_setting/jp.vue"),
      },
      // 单料烟评吸设置
      {
        path: "/smoke/dl",
        name: "/smoke/dl",
        component: () => import("@/views/smokeManager/px_setting/dl.vue"),
      },
      // 开始任务 开始评吸 中的签到表
      {
        path: "/startTask/sign",
        name: "startTask/sign",
        component: () => import("@/views/smokeManager/start_task/sign.vue"),
      },
      // 平息设置
      {
        path: "/smoke/pingxisetting",
        name: "/smoke/pingxisetting",
        component: () => import("@/views/smokeManager/pingxisetting.vue"),
      },
      // 签到表 《《《《 = 评吸烟支设置
      {
        path: "/smoke/signtable",
        name: "/smoke/signtable",
        component: () => import("@/views/smokeManager/signtable.vue"),
      },

      // 日常平息任务

      {
        path: "/dayWork/task",
        name: "/dayWork/task",
        component: () => import("@/views/dayWork/task.vue"),
      },
      // 日评吸任务
      {
        path: "/task/day",
        name: "/task/day",
        component: () => import("@/views/dayWork/day.vue"),
      },
      {
        path: "/task/week",
        name: "/task/week",
        component: () => import("@/views/dayWork/week.vue"),
      },
      // 津贴确认
      {
        path: "/allowance",
        name: "/allowance",
        component: () => import("@/views/dayWork/allowance.vue"),
      },
      // 评委库
      {
        path: "/dayWork/judge",
        name: "/dayWork/judge",
        component: () => import("@/views/dayWork/judge.vue"),
      },
      // 报表管理  =》 报表工具
      {
        path: "/report/report",
        name: "/report/report",
        component: () => import("@/views/reportManager/report.vue"),
      },
      // 报表管理  =》 表格
      {
        path: "/report/table",
        name: "/report/table",
        component: () => import("@/views/reportManager/table.vue"),
      },
      // 报表管理  =》 签到表
      { 
        path: "/report/sign",
        name: "/report/sign",
        component: () => import("@/views/reportManager/sign.vue"),
      },
    ],
  },
  {
    path: "/login",
    name: "login",
    component: () => import("@/views/login/index.vue"),
    meta: {
      title: "登录页",
      requireAuth: true,
      affix: true,
      closable: false,
    },
  },
  {
    path: "/indexLogin",
    name: "indexLogin",
    component: () => import("@/views/login/indexLogin.vue"),
    meta: {
      title: "登录页",
      requireAuth: true,
      affix: true,
      closable: false,
    },
  },
  {
    path: "/error",
    component: () => import("@/views/error/404.vue"),
    meta: { title: "错误页面" },
    children: [
      // {
      //   path: "/error/401",
      //   component: () => import("../../views/error/401.vue"),
      //   meta: { title: "401" },
      // },
      // {
      //   path: "/error/403",
      //   component: () => import("../../views/error/403.vue"),
      //   meta: { title: "403" },
      // },
      {
        path: "/error/404",
        component: () => import("@/views/error/404.vue"),
        meta: { title: "404" },
      },
      // {
      //   path: "/error/500",
      //   component: () => import("../../views/error/500.vue"),
      //   meta: { title: "500" },
      // },
    ],
  },
];
